LocalStatsOrBuilder

interface LocalStatsOrBuilder : MessageOrBuilder

Inheritors

Functions

Link copied to clipboard
abstract fun getAirUtilTx(): Float

Percent of airtime for transmission used within the last hour.
float air_util_tx = 3;
Link copied to clipboard

Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise).
float channel_utilization = 2;
Link copied to clipboard
abstract fun getHeapFreeBytes(): Int

Number of bytes free in the heap
uint32 heap_free_bytes = 13;
Link copied to clipboard
abstract fun getHeapTotalBytes(): Int

Number of bytes used in the heap
uint32 heap_total_bytes = 12;
Link copied to clipboard
abstract fun getNumOnlineNodes(): Int

Number of nodes online (in the past 2 hours)
uint32 num_online_nodes = 7;
Link copied to clipboard
abstract fun getNumPacketsRx(): Int

Number of packets received (both good and bad)
uint32 num_packets_rx = 5;
Link copied to clipboard
abstract fun getNumPacketsRxBad(): Int

Number of packets received that are malformed or violate the protocol
uint32 num_packets_rx_bad = 6;
Link copied to clipboard
abstract fun getNumPacketsTx(): Int

Number of packets sent
uint32 num_packets_tx = 4;
Link copied to clipboard
abstract fun getNumRxDupe(): Int

Number of received packets that were duplicates (due to multiple nodes relaying).
If this number is high, there are nodes in the mesh relaying packets when it's unnecessary, for example due to the ROUTER/REPEATER role.
uint32 num_rx_dupe = 9;
Link copied to clipboard
abstract fun getNumTotalNodes(): Int

Number of nodes total
uint32 num_total_nodes = 8;
Link copied to clipboard
abstract fun getNumTxRelay(): Int

Number of packets we transmitted that were a relay for others (not originating from ourselves).
uint32 num_tx_relay = 10;
Link copied to clipboard
abstract fun getNumTxRelayCanceled(): Int

Number of times we canceled a packet to be relayed, because someone else did it before us.
This will always be zero for ROUTERs/REPEATERs. If this number is high, some other node(s) is/are relaying faster than you.
uint32 num_tx_relay_canceled = 11;
Link copied to clipboard
abstract fun getUptimeSeconds(): Int

How long the device has been running since the last reboot (in seconds)
uint32 uptime_seconds = 1;